package net.getbang.admin.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;

import net.getbang.admin.controller.SysDeptService;
import net.getbang.admin.entity.SysDept;
import net.getbang.admin.mapper.SysDeptMapper;
@Service
public class SysDeptServiceImpl extends ServiceImpl<SysDeptMapper,SysDept> implements SysDeptService{

	@Autowired
	private SysDeptMapper sysDeptMapper;
	@Override
	public List<SysDept> queryDetpIdList(long deptId) {
		
		Map<String,Object>  columnMap = new HashMap<String,Object>();
		columnMap.put("parent_id", deptId);
		return  sysDeptMapper.selectByMap(columnMap);

	}

}
